//
//  PKNaviBarView.m
//  PianKe
//
//  Created by lanou on 15/12/22.
//  Copyright © 2015年 KFC. All rights reserved.
//

#import "PKNaviBarView.h"

@implementation PKNaviBarView



-(instancetype)initWithFrame:(CGRect)frame
{
    
    self = [super initWithFrame:frame];
    if (self) {
        
        self.changeFrameButton  = [UIButton buttonWithType:(UIButtonTypeCustom)];
        self.changeFrameButton.frame = CGRectMake(10 *kWidthBase, 25*kHeightBase,30*kWidthBase,30*kHeightBase);
        [self.changeFrameButton setBackgroundImage:[UIImage imageNamed:@"iconfont-lanmu"] forState:(UIControlStateNormal)];
      //  self.changeFrameButton.backgroundColor = [UIColor yellowColor];
        [self addSubview:self.changeFrameButton];

        UILabel *lineLabel = [[UILabel alloc] initWithFrame:CGRectMake(_changeFrameButton.right + 5*kWidthBase, 20, 1, 40)];
        lineLabel.backgroundColor = [UIColor grayColor];
        [self addSubview:lineLabel];
        
        UILabel *lineLabel2 = [[UILabel alloc] initWithFrame:CGRectMake(0, 63, kScreenWidth, 1)];
        lineLabel2.backgroundColor = [UIColor grayColor];
        [self addSubview:lineLabel2];
        
        
        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.changeFrameButton.right + 10*kWidthBase, self.changeFrameButton.top, 60*kWidthBase, self.changeFrameButton.height)];
       // self.titleLabel.backgroundColor = [UIColor whiteColor];
        self.titleLabel.font = [UIFont systemFontOfSize:15];
       // self.titleLabel.textAlignment = NSTextAlignmentCenter;
        [self addSubview:self.titleLabel];
        
//        self.shareButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
//        self.shareButton.frame = CGRectMake(100*kWidthBase, 25*kHeightBase,40*kWidthBase,40*kHeightBase);
//        [self.shareButton setTitle:@"分享" forState:(UIControlStateNormal)];
//        self.shareButton.backgroundColor = [UIColor blackColor];
//        [self addSubview:self.shareButton];
        
        
        
    }
    
    
    return self;
}










@end
